package com.by.bean;

import com.by.group.ISave;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * date 2025/2/24 15:21
 * author bjj
 * decoration
 * version 1.0
 * since jdk11
 */
@Data
@ApiModel(value = "字典信息")
public class Dic {
    @ApiModelProperty("id")
    private int id;
    @ApiModelProperty("字典编码")
    @NotEmpty(message = "字典编码不能为空",groups = {ISave.class})
    private String code;
    @ApiModelProperty("字典名称")
    @NotEmpty(message = "字典名称不能为空",groups = {ISave.class})
    private String name;
    @ApiModelProperty("字典类型")
    @NotNull(message = "字典类型不能为空",groups = {ISave.class})
    private int pid;
    @ApiModelProperty("排序")
    private int sorts;
    @ApiModelProperty(value = "创建时间")
    private String createTime;
    @ApiModelProperty(value = "是否删除 0 未删除 1 删除",hidden = true)
    private int isdel;
}
